Method: Megam::FlavorsCollection#<<

Defined in:
lib/megam/core/flavors_collection.rb

#<<(*args) ⇒ Object Also known as: push



26
27
28
29
30
31
32
33
# File 'lib/megam/core/flavors_collection.rb', line 26

def <<(*args)
    args.flatten.each do |a|
        is_megam_flavors(a)
        @flavors << a
        @flavors_by_name[a.] = @flavors.length - 1
    end
    self
end